* {
    margin: 0;
    padding: 0;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

a {
    text-decoration: none;
    color: #fff;
    // &:hover{
    //     border: #fff 1px solid;
    // }
}

//样式
.logo {
    font-size: xx-large;
    color: rgb(36, 37, 38);
    max-width: 1200px;
    margin: 40px auto;
    padding-left: 50px;
}

nav {
    max-width: 100%;

    ul {
        height: 40px;
        list-style-type: none;
        background-color: rgb(32, 31, 31);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        transition: height 1s;
        overflow: hidden;

        &:hover {
            height: 210px;
        }

        &:hover li {
            display: block;

        }

        li {
            width: 100%;
            height: 100%;
            // margin: 10px auto;
            line-height: 100%;
            display: none;
            position: relative;

            a {
                display: block;
                position: absolute;
                width: 99px;
                line-height: 42px;
                /*原理： 绝对定位元素是相对于包含块进行定位的 平移是相对于自己平移的 */
                left: 50%;
                top: 50%;
                transform: translateX(-50%) translateY(-50%);
                // 文本居中
                text-align:center;
                /*此时不管内容是什么，盒子都居中*/


            }

            &:nth-child(1) {
                display: block;
            }

            &:hover {
                background-color: rgba(240, 248, 255, 0.104);
            }
        }

    }
}

.grid {
    max-width: 1200px;
    margin: 0 auto;

    article {
        color: black;
        padding-left: 50px;
        max-width: 800px;
        padding-right: 50px;

        h1 {
            margin-top: 30px;
            color: rgb(21, 21, 22);
            font-size: 30px;
            font-weight: bold;
        }

        img {
            max-width: 200px;
            float: left;
            margin: 12px 5px 0 0;
        }

        p {
            padding: 10px 0;
            font-size: large;
            font-family: 'Times New Roman', Times, serif;

        }

    }

    aside {
        padding-left: 50px;
        padding-right: 50px;

        h2 {
            color: rgb(21, 21, 22);
            font-size: 30px;
            font-weight: bold;
            margin-top: 30px;
        }

        .photos {
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-column-gap: 5px;
            grid-row-gap: 5px;

            li {
                list-style: none;
                flex: 1;

                img {
                    margin: 12px 5px 0 0;
                    width: 100%;
                    height: 100%;
                    background-position: center;
                    background-size: 100% auto;
                    object-fit: cover;
                }
            }
        }
    }
}